package com.td.module.produce.controller.admin.info.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import static com.td.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
* 生产管理基础信息 Base VO，提供给添加、修改、详细的子 VO 使用
* 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
*/
@Data
public class InfoBaseVO {

    @ApiModelProperty(value = "作物种类")
    private Integer cropSpecie;

    @ApiModelProperty(value = "作物品种")
    private String cropVarieties;

    @ApiModelProperty(value = "地块编码")
    private String landCode;

    @ApiModelProperty(value = "种植面积")
    private BigDecimal plantArea;

    @ApiModelProperty(value = "种子名称", example = "JinRui")
    private String seedName;

    @ApiModelProperty(value = "使用量（袋）")
    private Integer usage;

    @ApiModelProperty(value = "生产模型二级id", example = "21218")
    private Long growthId;

    @ApiModelProperty(value = "种植标准")
    private Integer plantStandards;

    @ApiModelProperty(value = "种植环境")
    private Integer plantEnvironment;

    @ApiModelProperty(value = "种植时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime plantTime;

    @ApiModelProperty(value = "采收时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime harvestTime;

    @ApiModelProperty(value = "定植时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime colonizationTime;

    @ApiModelProperty(value = "种植状态", example = "2")
    private Integer plantStatus;

}
